import { createRouter, createWebHashHistory } from "vue-router";
import Props from '@/pages/props/Father.vue';
import Event from '@/pages/custom-event/Father.vue';
import Bus from '@/pages/mitt/Father.vue'
import Model from '@/pages/v-model/Father.vue'
import AttrsListeners from '@/pages/attrs/Father.vue'
import RefChildrenParent from '@/pages/refs-$parent/Father.vue'
import ProvideInject from '@/pages/provide-inject/Father.vue'
import Pinia from '@/pages/pinia/Father.vue'
import Slot from '@/pages/slot/index.vue'

export default createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/props',
      component: Props
    },
    {
      path: '/event',
      component: Event
    },
		{
			path: '/mitt',
			component: Bus
		},
        {
			path: '/model',
			component: Model
		},
        {
			path: '/attrs',
			component: AttrsListeners
		},
        {
			path: '/ref-parent',
			component: RefChildrenParent
		},
        {
			path: '/provide-inject',
			component: ProvideInject
		},
        {
			path: '/pinia',
			component: Pinia
		},
        {
			path: '/slot',
			component: Slot
		},
        {
            path: '/',
            redirect: '/props'
        },
    ]
})